/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.edu.prova;

import br.edu.util.GenericDAO;

/**
 *
 * @author 'Pedro
 */
public class ProvaDAO extends GenericDAO<Prova>{
    
    public ProvaDAO(){
        super(Prova.class);
    }
    
     public boolean salvar(Prova prova) {
        if(prova.getId()==0){
            adicionar(prova);
        } else {
            atualizar(prova);
        }
        return true;
    }
}
